<template>
  <span title="日间模式" v-if="isDark" @click="setTheme('sun')">
    <icon-sun-fill />
  </span>
  <span title="夜间模式" v-else @click="setTheme('dark')">
    <icon-moon-fill />
  </span>
</template>

<script lang="ts" setup>
import { onMounted } from "vue";
import { isDark, setTheme, loadTheme } from "./index";

</script>
<style lang="less">
// svg {
//   color: var(--color-text-1);
// }
</style>
